
<%@ include file="SiteBanner.jsp" %>
<%@page import="com.office.automate.model.authenticate.UserAuthenticator"%>
<%
	response.setHeader("Cache-Control","no-cache"); //Forces caches to obtain a new copy of the page from the origin server
	response.setHeader("Cache-Control","no-store"); //Directs caches not to store the page under any circumstance
	response.setDateHeader("Expires", 0); //Causes the proxy cache to see the page as "stale"
	response.setHeader("Pragma","no-cache"); //HTTP 1.0 backward compatibility
%>
<tr>
	<td>
		<div align="right">
			<%
				UserAuthenticator currentUser = (UserAuthenticator) (session
						.getAttribute("currentSessionUser"));
				if (currentUser == null) {
					response.sendRedirect("/OfficeAutomation/index.jsp");
				} else {
			%>
				Welcome <i> <%=currentUser.getFirstName() + " " + currentUser.getLastName() %> </i>...
			<%
				}
			%>
			<a href="/OfficeAutomation/SystemLogOutServlet"> Log Out </a>
		</div>
	</td>
</tr>